import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import BaseUI from '@trendy/base_ui'
import '@trendy/base_ui/dist/base.css'
import '@/assets/stylus/index.styl'
import router from './router/index'
import store from './store/index'
import request from '@/utils/request'
import moment from 'moment'
import '@/utils/theme.js'
import flowParams from '@/views/config/businessprocesses/nodedata.vue'
import Condition from '@/views/config/businessprocesses/condition.vue'
import NodeInData from '@/views/config/businessprocesses/nodeInData.vue'
import Arithmetic from '@/views/config/businessprocesses/arithmetic.vue'
import CustomConversion from '@/views/config/businessprocesses/customConversion.vue'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

Vue.use(BaseUI)
Vue.createAPI(flowParams, true)
Vue.createAPI(Condition, true)
Vue.createAPI(NodeInData, true)
Vue.createAPI(Arithmetic, true)
Vue.createAPI(CustomConversion, true)

Vue.use(ElementUI)
Vue.prototype.logo = require('@/assets/images/logo.png')
Vue.prototype.$ELEMENT = { size: 'mini' }
Vue.prototype.$http = request
Vue.prototype.$moment = moment
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
